package com.smartwebee.android.blespp;

import android.content.Context;
import android.support.constraint.ConstraintLayout;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.TextView;

public class CustomLoading extends ConstraintLayout {
    private TextView tvDesc;
    public CustomLoading(Context context) {
        this(context, null);
    }

    public CustomLoading(Context context, AttributeSet attrs) {
        super(context, attrs);
        LayoutInflater.from(context).inflate(R.layout.custom_loading, this, true);
        initView();
        addXmlAttrs(context, attrs);
    }

    private void addXmlAttrs(Context context, AttributeSet attrs) {

    }

    private void initView() {
        tvDesc = (TextView)findViewById(R.id.tv_desc);
    }

    public void setDesc(String desc) {
        tvDesc.setText(desc);
    }

}
